package com.pinyoumei.app.adapter;

import android.support.annotation.Nullable;

import com.pinyoumei.app.R;
import com.pinyoumei.app.bean.SignRecordBean;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

/**
 * Created by Administrator on 2021-08-09.
 * --------- 日期 ------- 维护人 ------------ 变更内容 --------
 * 2021-08-09        Administrator             新增Person类
 * 2021-08-09        Administrator             增加sex属性
 */
public class SignInRecordAdapter extends BaseQuickAdapter<SignRecordBean.ResultBean.SignListBean, BaseViewHolder> {
    public SignInRecordAdapter(int layoutResId, @Nullable List<SignRecordBean.ResultBean.SignListBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, SignRecordBean.ResultBean.SignListBean item) {
        helper.setText(R.id.tv_give_num,item.getGive_num());
        helper.setText(R.id.tv_add_time,item.getAdd_time());
    }
}
